import fly from '@/utils/request'
import URL from '@/utils/host'


//悬赏问答详情
export function wendainfo(data){
    return fly.request({
        method: 'get', 
        url:URL.host1+'wenda/info/'+data.id,
        params: data
    })
}

// 悬赏回答列表

export function anslist(data){
    return fly.request({
        method: 'get', 
        url:URL.host1+'wenda/anslist/'+data.id,
        params: data
    })
}

//回答问题

export function answer(data){
    return fly.request({
        method: 'post',
        url:URL.host1+'wenda/answer/'+data.id,
        body: data
    })
}